<template>

    <m-table name="admin-store-account" :action="action" :search="search" :params="params" ref="table">

        <el-table-column label="姓名" prop="name" />

        <el-table-column label="手机号" prop="phone" />

        <el-table-column label="所属商户" prop="storeName" />

        <el-table-column label="注册时间" prop="created"  />
    </m-table>

  

</template>

<script>
import request from '@/utils/request'
import { accountState } from '@/config/account'
export default {
    data() {
        return {
            states:accountState,
            search: [
                { icon: 'el-icon-mobile', type: 'like', name: 'a.name', label: '用户姓名', span: 4, value: '' },
                { icon: 'el-icon-mobile', type: 'like', name: 'a.phone', label: '联系方式', span: 4, value: '' }
            ],
            action: { remove: false, edit: true, add: true, export: false },
            params:[
                { name: 'id', value: '', hide: true },
                { name: 'name', value: '', label: '姓名' , type:'string'},
                { name: 'phone', value: '', label: '手机号' , type:'string'},
                { name: 'pwd', value: '', label: '登录密码' , type:'string'},
                { name: 'storeId', value: '', label: '所属商户' , type:'apiSelect' , url:'admin-store/name' },
            ]
        }
    },
    methods:{
       
    }
}
</script>